package demo1;

import org.quartz.*;

public class DemoJob implements Job {

    public DemoJob() {
    }

    public void execute(JobExecutionContext context) throws JobExecutionException {
        JobKey key = context.getJobDetail().getKey();
        JobDataMap dataMap = context.getJobDetail().getJobDataMap();
        Object jobSays = dataMap.getString("jobSays");
        Object myFloatValue = dataMap.getString("myFloatValue");
        System.out.println("Instance " + key + " of DumbJob says: " + jobSays + ", and val is: " + myFloatValue);
    }
}
